package com.springstudy.shiro.controller.admin;

import com.springstudy.shiro.entity.Response;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenrongrong
 * @since 2020/3/11 16:11
 */
@RestController
@RequestMapping("admin/test")
//@RequiresRoles(value = "admin")
public class TestController {

    @RequestMapping("info")
    public Object info() {
        return Response.ok();
    }
}
